import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CupertinoButtonDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('CupertinoButton'),
        centerTitle: true,
      ),
      body: Column(
        children: <Widget>[
          Padding(padding: EdgeInsets.all(10)),
          CupertinoButton(
              child: Text('IOS风格'),
              color: Colors.blue,
              onPressed: () {
                print('点击按钮');
              }),
          Padding(padding: EdgeInsets.all(10)),
          CupertinoButton(
              child: Text('IOS风格2'),
              color: Colors.blue,
              borderRadius: BorderRadius.circular(40),
              onPressed: () {
                print('点击按钮');
              }),
        ],
      ),
    );
  }
}
